package com.roads.project.domain;

import com.roads.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目级监理清单对象 pro_supervisor_boq
 *
 * @author nhp
 * @date 2022-07-08
 */
public class ProSupervisorBoq extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Integer id;

    /**
     * 项目ID
     */
    private Integer projectId;

    /**
     * 清单编码
     */
    private String boqCode;

    /**
     * 清单名称
     */
    private String boqName;

    /**
     * 上级编号
     */
    private String parentCode;

    /**
     * 祖籍列表
     */
    private String ancestors;

    /**
     * 显示排序
     */
    private Double orderNum;

    /**
     * 级别
     */
    private Integer level;

    /**
     * 是否叶子结点（0否 1是）
     */
    private String leafNode;

    /**
     * 单位
     */
    private String unit;


    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public void setBoqCode(String boqCode) {
        this.boqCode = boqCode;
    }

    public String getBoqCode() {
        return boqCode;
    }

    public void setBoqName(String boqName) {
        this.boqName = boqName;
    }

    public String getBoqName() {
        return boqName;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setOrderNum(Double orderNum) {
        this.orderNum = orderNum;
    }

    public Double getOrderNum() {
        return orderNum;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLeafNode(String leafNode) {
        this.leafNode = leafNode;
    }

    public String getLeafNode() {
        return leafNode;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectId", getProjectId())
                .append("boqCode", getBoqCode())
                .append("boqName", getBoqName())
                .append("parentCode", getParentCode())
                .append("ancestors", getAncestors())
                .append("orderNum", getOrderNum())
                .append("level", getLevel())
                .append("leafNode", getLeafNode())
                .append("unit", getUnit())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }

}
